package app.controller.core
{
	import app.model.flare.proxies.FlareDataProxy;
	import app.view.component.StateComboBox;
	import app.view.mediators.AddStateFormMediator;
	
	import org.puremvc.as3.multicore.interfaces.INotification;
	import org.puremvc.as3.multicore.patterns.command.SimpleCommand;

	public class PopulatePackageComboCmd extends SimpleCommand
	{
		override public function execute(notification:INotification):void{
			var mediator:AddStateFormMediator = AddStateFormMediator(facade.retrieveMediator(AddStateFormMediator.NAME)),
				proxy:FlareDataProxy = FlareDataProxy(facade.retrieveProxy(FlareDataProxy.NAME)),
				stateCombo:StateComboBox = new StateComboBox();
			mediator.packageList = proxy.packageList;
			
			stateCombo.sharedDataProvider = proxy.stateList
		}
		
	}
}